package com.pkk.cloud.support.admin.dto.req.resources;

import java.io.Serializable;
import java.util.Set;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author peikunkun<br>
 * @version V1.0<br>
 * @Title: <br>
 * @Description: 资源角色绑定请求类<br>
 * @date 2020/4/11 0011 下午 12:39<br>
 * @URL:[]
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OauthResourceRoleBindReqData implements Serializable {

  private static final long serialVersionUID = -5388990883335238105L;

  /** 角色id */
  @NotNull(message = "请选择角色信息")
  private Long roleId;

  /** 客户端id */
  @NotNull(message = "请选择客户端信息")
  private String clientId;

  /** 资源id数组 */
  @NotNull(message = "请选择资源信息")
  private Set<Long> resourceIds;
}
